'use strict';
let fs = require("fs");
let ws = fs.createWriteStream("writeStream.txt", 'utf-8');
ws.write(new Buffer("使用二进制刘写文件", 'utf-8'));
ws.write(new Buffer("结束了", 'utf-8'));
ws.end();